/**
 * Created by jihb on 4/19/16.
 */
Ext.define('JYnovel.store.system.MenuStore',{
    extend:'Ext.data.Store',
    constructor: function(cfg) {
        var me = this;
        cfg = cfg || {};
        me.callParent([Ext.apply({
            model: 'JYnovel.model.system.MenuModel',
            autoLoad:false,
            proxy: {
                type: 'ajax',
                listeners:{
                    // exception:ExtProxyException
                },
                reader: {
                    listeners:{
                        // exception:ExtProxyReaderException
                    },
                    type: 'json',
                    root: 'result',
                    totalProperty: 'totalCount'
                },
                url: getUrl('/menu/page')
            }
        }, cfg)]);
    }
});